﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Contacts.Search" %>
<script>
var M0006="<%=GetText("M0006")%>";
var C0003="<%=GetText("C0003") %>";
var C0005="<%=GetText("C0005")%>";
var C0007="<%=GetText("C0007")%>";
var C0008="<%=GetText("C0008") %>";
var C0009="<%=GetText("C0009") %>";
var C0010="<%=GetText("C0010") %>";
var C0011="<%=GetText("C0011") %>";
var C0024="<%=GetText("C0024") %>";
var C0027="<%=GetText("C0027") %>";
var C0029="<%=GetText("C0029") %>";
var C0066="<%=GetText("C0066") %>";
var C0068="<%=GetText("C0068") %>";

var CT000="<%=GetText("CT000") %>";
var CT001="<%=GetText("CT001") %>";
var CT002="<%=GetText("CT002") %>";
var CT003="<%=GetText("CT003") %>";
var CT004="<%=GetText("CT004") %>";
var CT005="<%=GetText("CT005") %>";
var CT006="<%=GetText("CT006") %>";
var CT007="<%=GetText("CT007") %>";
var CT009="<%=GetText("CT009") %>";
var CT011="<%=GetText("CT011") %>";
var CT012="<%=GetText("CT012") %>";
var CT066="<%=GetText("CT066") %>";

var gNoCount = "<%=GetText("CT055")%>";
var gCounts = "<%=GetText("CT010")%>"
var gCounts5 = "<%=GetText("CT054")%>";
var gMale = "<%=GetText("C0012")%>";
var gFemale = "<%=GetText("C0013")%>";
var gOnlineN = "<%=GetText("C0038")%>";
var gTypeD = "<%=GetText("CT008")%>";
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate = "<%=GetText("C0032")%>";
</script>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("TP032")%></h1>
							</div>
							<div class="teachers_fliter">
								<table width="100%" border="0" cellspacing="1" cellpadding="5">
									<tr>
									    <td valign="top"><strong><%=GetText("TP246")%>: </strong>
									      <input name="Input32" type="checkbox" value="" checked="checked" /> <strong><%=GetText("TP003")%></strong> <img src="/Images/icon_help.gif" align="absmiddle" />&nbsp;&nbsp;&nbsp;&nbsp;<input name="Input32" type="checkbox" value="" checked="checked" /> <strong><%=GetText("TP004")%></strong> <img src="/Images/icon_help.gif" align="absmiddle" />
										  <hr  color="#eeeeee" />
											<table border="0" cellspacing="1" cellpadding="0">
												<tr>
													<td><%=GetText("C0118")%><br /><select name="select2" class="common130"><option><%=GetText("C0027")%></option></select></td>
													<td><span class="grey12">&nbsp;<%=GetText("TP064")%>:</span><br />&nbsp;<select name="select" class="common130"><option><%=GetText("C0027")%></option></select></td>
													<td><span class="grey12">&nbsp;<%=GetText("C0003")%>:</span><br />&nbsp;<select name="select" class="common130"><option><%=GetText("C0029")%></option></select></td>
													<td><span class="grey12">&nbsp;<%=GetText("TP065")%></span><br />&nbsp;<input name="Input" size="4" type="text" /> <%=GetText("TP024")%> <input name="Input" size="4" type="text" /></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td valign="top"><div class="floatl"><a href="#" class="specbtn"><span>&nbsp;&nbsp;&nbsp;<%=GetText("C0068")%>&nbsp;&nbsp;&nbsp;</span></a></div><div class="floatl">&nbsp;&nbsp;&nbsp;&nbsp;<input name="Input2" type="checkbox" value="" /> <%=GetText("CT091")%>&nbsp;&nbsp;&nbsp;&nbsp;<input name="Input2" type="checkbox" value="" /><%=GetText("TP009")%></div><div class="clear"></div></td>
									</tr>
								</table>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="teach_area" id="Content828ID">
								<script>
									var gContent828ID = document.getElementById("Content828ID").innerHTML;
									gContent828ID = gContent828ID.replace(/\$C0003\$/gi,C0003).replace(/\$C0008\$/gi,C0008).replace(/\$C0010\$/gi,C0010).replace(/\$C0011\$/gi,C0011).replace(/\$C0012\$/gi,gMale).replace(/\$C0013\$/gi,gFemale).replace(/\$C0024\$/gi,C0024);
									gContent828ID = gContent828ID.replace(/\$C0027\$/gi,C0027).replace(/\$C0029\$/gi,C0029).replace(/\$C0066\$/gi,C0066).replace(/\$C0068\$/gi,C0068).replace(/\$CT001\$/gi,CT001).replace(/\$CT002\$/gi,CT002).replace(/\$CT003\$/gi,CT003);
									gContent828ID = gContent828ID.replace(/\$CT004\$/gi,CT004).replace(/\$CT005\$/gi,CT005).replace(/\$CT006\$/gi,CT006).replace(/\$CT007\$/gi,CT007).replace(/\$CT008\$/gi,gTypeD).replace(/\$CT009\$/gi,CT009).replace(/\$CT011\$/gi,CT011);
									gContent828ID = gContent828ID.replace(/\$CT012\$/gi,CT012).replace(/\$CT066\$/gi,CT066);
									document.getElementById("Content828ID").innerHTML = gContent828ID;
									gContent828ID=null;
								</script>
								
								<div class="content628" style="margin-bottom:20px">
									<div>
										<div class="floatl"><%=GetText("TP401")%></div>
										<div class="floatr text11"><%=GetText("C2017")%>: <strong><%=GetText("TP130")%></strong>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#"><%=GetText("TP131")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#"><%=GetText("TP132")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#"><%=GetText("TP133")%></a></div>
										<div class="clear"></div>
									</div>
									<div class="Clear"></div>
								</div>
								<!--Search result-->
								<div id="memberList" class="content628 ">
									<asp:Repeater ID="uList" runat="server">
										<ItemTemplate>
											<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;overflow:hidden">
											<tr>
												<td width="110" valign="top"><div class="Pic90"><a class="Photo_90" href="/<%#Eval("MemberNo") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div><div style="width:94px; background-color:#e2007b; text-align:center; color:#fff"><%=GetText("C0116")%></div></td>
												<td width="12" valign="top" style="padding-top:5px"><%#(bool)(DataBinder.Eval(Container.DataItem,"Online"))?"<img src='/Images/online.gif' title='Online Now!' />":"<img src='/Images/offline.gif' title='Offline' />"%></td>
												<td width="400" valign="top"><span class="text14"><a href="/<%#Eval("MemberNo") %>.htm"><%#Eval("NickName") %></a></span>&nbsp;&nbsp;&nbsp;$C0003$ <%#GetCountryText(Eval("Nationality").ToString())%>
												<p><%=GetText("C0118")%>: <strong><%#GetLanguageText(Eval("MotherTongue").ToString())%></strong></p>
												<p class="grey12"><%=GetText("C0005")%>: <%#GetLanguageText(Eval("MotherTongue").ToString())%><img src="/Images/Level5.gif" /><%#(Eval("MotherTongue2").ToString().Trim()=="")?"":", "+(GetLanguageText(Eval("MotherTongue2").ToString())+Eval("motherTongue2Level","<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" : ", "+(GetLanguageText(Eval("MotherTongue3").ToString()) + Eval("motherTongue3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" : ", "+(GetLanguageText(Eval("MotherTongue4").ToString()) + Eval("motherTongue4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></p>
												</td>
												<td valign="top" align="center"><p><span style="color:#333; font-size:22px">€ 20</span></p><p><img src="/Images/fbapp_level_4.gif" title="Rating: 4.8" /></p><p><%=GetText("C0119")%>: 21</p></td>
											</tr>
											</table>
										</ItemTemplate>
									</asp:Repeater>      
								</div>
								<div class="clear"></div>
								<script>
									document.getElementById("memberList").innerHTML = document.getElementById("memberList").innerHTML.replace(/\$C0005\$/gi,C0005).replace(/\$C0007\$/gi,C0007).replace(/\$C0009\$/gi,C0009).replace(/\$C0003\$/gi,C0003);
								</script>
								<div id="divPage" class="content628 DisplayNone"></div>
							</div>
						</div>
					</div>					
					<div class="center9001left">
						<div class="ad_site margin20T">
							<script type="text/javascript"><!--
							google_ad_client = "pub-2873751441352197";
							/* unit160x600A */
							google_ad_slot = "9843068892";
							google_ad_width = 160;
							google_ad_height = 600;
							//-->
							</script>
							<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
							<!-- Begin: AdBrite -->
							<script type="text/javascript">
							   var AdBrite_Title_Color = '006699';
							   var AdBrite_Text_Color = '333333';
							   var AdBrite_Background_Color = 'FFFFFF';
							   var AdBrite_Border_Color = 'FFFFFF';
							   var AdBrite_URL_Color = '336699';
							</script>
							<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=675232&zs=3732385f3930" type="text/javascript"></script><!--
							--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=675232&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#FFFFFF;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
							<!-- End: AdBrite -->
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<div id="SearCountItem" style="display: none;">$SearchCount$</div>
<div id="MemberTemple" style="display: none;">   
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;overflow:hidden">
	  <tr>
		<td width="110" valign="top"><div class="Pic90"><a class="photo_90" href="/$MemberNo$.htm">$Avatar$</a></div></td>
		<td width="200" valign="top"><div class="Blue14BU"><a href="/$MemberNo$.htm">$NickName$</a></div>
		<div>$Age$ $Gender$ $C0003$ $Nationality$</div>
		<div class="Orange10">$Online$</div></td>
		<td valign="top">$C0009$: $City$ $Country$
            <br />$C0005$: <strong>$MotherTongue$ $MotherTongue2$ $MotherTongue3$ $MotherTongue4$</strong>
            <br />$C0007$: <strong>$TargetLanguage$ $TargetLanguage2$ $TargetLanguage3$ $TargetLanguage4$</strong>
            <br />$Avatar_title$</td>
	</tr>
	</table>
</div>
<div id="MemberTemple2" style="display: none;">   
	<div style="float:left; width:120px; margin-bottom:10px">
		<div class="Pic90" style="width:92px; margin:0 auto"><a class="photo_90" href="/$MemberNo$.htm">$Avatar$</a></div>
		<div style="text-align:center"><a href="/$MemberNo$.htm">$NickName$</a></div>            
    </div>   
</div>
<select id="selLang" style="display: none"><%=GetLanguageSelect("")%></select>
<select id="jselCountry" style="display: none"><%=GetCountrySelect("")%></select> 
<asp:Literal ID="litScript" runat="server" />
<script>
var memberLearn = "<%=memberInfo.TargetLanguage %>";
var memberSpeak = "<%=memberInfo.MotherTongue %>";
var learnVal="<%=learnValc %>";
var speakVal="<%=speakValc %>";
var nationVal="<%=nationValc %>";
var maxAgeVal="<%=maxAgeValc %>";
var minAgeVal="<%=minAgeValc %>";
var genderVal="<%=genderValc %>";
var cityVal="";
var isAvatarVal=<%=isAvatarValc %>==1 ? true:false;
var isChatNowVal=<%=isChatNowValc %>==1 ? true:false;
$get("selAge").value=minAgeVal+"-"+maxAgeVal;
$get("selGender").value=genderVal;
</script>
